'''
tournament-1047.txt
tournament-1048.txt
tournament-1049.txt
tournament-1080.txt
tournament-11071.tx
tournament-1120.txt
tournament-1168.txt
tournament-11723.tx
tournament-11724.tx
tournament-1189.txt
tournament-12353.tx
tournament-1249.txt
tournament-13239.tx
tournament-1333.txt
tournament-1335.txt
tournament-13394.tx
tournament-1341.txt
tournament-1346.txt
tournament-1356.txt
tournament-1372.txt
tournament-1373.txt
tournament-1422.txt
tournament-14457.tx
tournament-14459.tx
tournament-14481.tx
tournament-14546.tx
tournament-14742.tx
tournament-14745.tx
tournament-14747.tx
tournament-14954.tx
tournament-15108.tx
tournament-15375.tx
tournament-15566.tx
tournament-15630.tx
tournament-15631.tx
tournament-15991.tx
tournament-16028.tx
tournament-16247.tx
tournament-16443.tx
tournament-16499.tx
tournament-16556.tx
tournament-16620.tx
tournament-16684.tx
tournament-16695.tx
tournament-16725.tx
tournament-1693.txt
tournament-1703.txt
tournament-17095.tx
tournament-1726.txt
tournament-1749.txt
tournament-1751.txt
tournament-17833.tx
tournament-17888.tx
tournament-179.txt
tournament-1811.txt
tournament-1812.txt
tournament-18285.tx
tournament-18764.tx
tournament-18811.tx
tournament-19139.tx
tournament-1924.txt
tournament-2045.txt
tournament-21147.tx
tournament-21650.tx
tournament-21879.tx
tournament-2205.txt
tournament-22115.tx
tournament-22134.tx
tournament-2274.txt
tournament-22762.tx
tournament-22839.tx
tournament-2288.txt
tournament-230.txt
tournament-2315.txt
tournament-23323.tx
tournament-23808.tx
tournament-23888.tx
tournament-24464.tx
tournament-24494.tx
tournament-24532.tx
tournament-24546.tx
tournament-24695.tx
tournament-2485.txt
tournament-24908.tx
tournament-2498.txt
tournament-24996.tx
tournament-25154.tx
tournament-25471.tx
tournament-25521.tx
tournament-25640.tx
tournament-25641.tx
tournament-25755.tx
tournament-25841.tx
tournament-25913.tx
tournament-2617.txt
tournament-26331.tx
tournament-26431.tx
tournament-2672.txt
tournament-26725.tx
tournament-26848.tx
tournament-26851.tx
tournament-2698.txt
tournament-26998.tx
tournament-27045.tx
tournament-27056.tx
tournament-2708.txt
tournament-27377.tx
tournament-28069.tx
tournament-28073.tx
tournament-28559.tx
tournament-2867.txt
tournament-29103.tx
tournament-29382.tx
tournament-2970.txt
tournament-299.txt
tournament-30633.tx
tournament-31668.tx
tournament-32161.tx
tournament-32818.tx
tournament-33539.tx
tournament-34153.tx
tournament-34227.tx
tournament-34262.tx
tournament-34347.tx
tournament-34451.tx
tournament-34704.tx
tournament-3478.txt
tournament-3494.txt
tournament-35367.tx
tournament-355.txt
tournament-35648.tx
tournament-35783.tx
tournament-35841.tx
tournament-35880.tx
tournament-35933.tx
tournament-36370.tx
tournament-36429.tx
tournament-36874.tx
tournament-36918.tx
tournament-37003.tx
tournament-37112.tx
tournament-37376.tx
tournament-37532.tx
tournament-37739.tx
tournament-37770.tx
tournament-37774.tx
tournament-37885.tx
tournament-38383.tx
tournament-38451.tx
tournament-38597.tx
tournament-38865.tx
tournament-3980.txt
tournament-4008.txt
tournament-4029.txt
tournament-403.txt
tournament-40411.tx
tournament-40733.tx
tournament-409.txt
tournament-41977.tx
tournament-4209.txt
tournament-4259.txt
tournament-4268.txt
tournament-43016.tx
tournament-4332.txt
tournament-43836.tx
tournament-4388.txt
tournament-44076.tx
tournament-4460.txt
tournament-4469.txt
tournament-451.txt
tournament-45386.tx
tournament-4546.txt
tournament-4604.txt
tournament-4708.txt
tournament-47104.tx
tournament-47637.tx
tournament-47853.tx
tournament-48489.tx
tournament-48744.tx
tournament-48798.tx
tournament-4951.txt
tournament-49708.tx
tournament-49977.tx
tournament-50047.tx
tournament-50946.tx
tournament-51044.tx
tournament-51093.tx
tournament-52538.tx
tournament-532.txt
tournament-5428.txt
tournament-545.txt
tournament-563.txt
tournament-565.txt
tournament-5731.txt
tournament-5789.txt
tournament-584.txt
tournament-632.txt
tournament-6376.txt
tournament-6442.txt
tournament-6545.txt
tournament-658.txt
tournament-660.txt
tournament-6719.txt
tournament-672.txt
tournament-7197.txt
tournament-7200.txt
tournament-7233.txt
tournament-7243.txt
tournament-726.txt
tournament-7267.txt
tournament-7406.txt
tournament-7443.txt
tournament-7697.txt
tournament-7797.txt
tournament-7879.txt
tournament-7974.txt
tournament-7992.txt
tournament-8044.txt
tournament-837.txt
tournament-844.txt
tournament-8504.txt
tournament-8529.txt
tournament-8545.txt
tournament-857.txt
tournament-8591.txt
tournament-8629.txt
tournament-880.txt
tournament-883.txt
tournament-8939.txt
tournament-9017.txt
tournament-9371.txt
tournament-9610.txt
'''

import os
import re


bads = []

for fname in os.listdir('.'):
    lines = open(fname, 'rb').readlines()
    line = lines[0] + lines[1]
    match = re.findall(b'(Team)', line)
    if len(match) > 1:
        #print(fname)
        bads.append(fname)
        os.unlink(fname)
        
        
print(len(bads))
